package com.listening.framework.utils;

import java.util.List;

/**
 * 分页工具
 * 
 * @author Listening
 * 
 * @param <T>
 */
public class Pagination<T> {

	/**
	 * 记录总数
	 */
	public Integer totalCounts;

	/**
	 * 数据列表
	 */
	public List<T> dataList;

	/**
	 * 当前页
	 */
	public Integer currentPage;

	/**
	 * 页面大小
	 */
	public Integer pageSize;

	public Integer getTotalCounts() {
		return totalCounts;
	}

	public void setTotalCounts(Integer totalCounts) {
		this.totalCounts = totalCounts;
	}

	public List<T> getDataList() {
		return dataList;
	}

	public void setDataList(List<T> dataList) {
		this.dataList = dataList;
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
